package com.example.houduan.demos.web.controller;

import com.example.houduan.demos.web.mapper.ProcessMapper;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.example.houduan.demos.web.entity.Process;
import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/process")
public class ProcessController {
    @Resource
    private ProcessMapper processMapper;
    @GetMapping("/getAll")
    public List<Process> getAll(){
        return processMapper.findAll();
    }
}
